package com.xxg.renrenorder.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 更新带货商品底下的所有库存和销量参数
 *
 * @author xxg
 * @date 2020/10/30
 */
@Data
@ApiModel(value = "UpdateCarryProductQuery", description = "更新带货商品底下的所有库存和销量参数")
public class UpdateCarryProductQuery {
    @NotNull(message = "id不能为null")
    @ApiModelProperty(value = "spuId", required = true)
    private Integer spuId;
    @NotNull(message = "password不能为null")
    @ApiModelProperty(value = "password", required = true)
    private String password;

    public boolean checkPassword() {
        return "rrsc_1234_qwer%fix".equals(password);
    }
}